<template>
	<view class="smart-page">
		<!-- 页面标题头begin-->
		<view class="smart-page-head">
			<view class="smart-page-head-title">navigator导航</view>
		</view>
		<!-- 页面标题头end-->
		<navigator url="/audio/audio">
			<button>跳转到新页面</button>
		</navigator>
		<navigator open-type="redirect" url="/audio/audio">
			<button>跳转当前页面</button>
		</navigator>
		<navigator open-type="switchTab" url="/tabBar/api/api">
			<button>跳转到tab页</button>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {}
	}
</script>

<style>
	.smart-page-head {
		padding: 20px 0;
		text-align: center;
		margin-bottom: 20px;
	}

	.smart-page-head-title {
		font-size: 24px;
		font-weight: 600;
		color: darkgray;
		display: inline-block;
		position: relative;
		padding-bottom: 8px;
	}

	.smart-page-head-title::after {
		content: '';
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 2px;
		background-color: lightgray;
	}
</style>